package com.ys.base;

/**
 * @author quxinjun
 * @version 1.0.0
 * @ClassName BaseConstants.java
 * @Description 常量
 * @createTime 2021年05月07日 18:11:00
 */
public interface BaseConstants {

    String PUSH_ALL = "3268F0F6C8EE40A4A8CFCEEBB79A1B50";

    interface ClientConstants {
        String CLIENT_HEAD_IMG = "https://oss-img.ys168.vip/sys/other/kf.png";
        String CLIENT_PHONE = "88888888888";
        Long CLIENT_ID = 0L;
        String CLIENT_NICK_NAME = "蜂省优选官方客服";
        Integer CLIENT_GENDER = 2;

        Long ASSISTANT_ID = 1L;
        String ASSISTANT_NICK_NAME = "营销助手";
        String ASSISTANT_HEAD_IMG = "https://oss-img.ys168.vip/sys/other/yxzs.jpg";

        String SYS_NOTICE_NICK_NAME = "系统通知";
        String SYS_NOTICE_HEAD_IMG = "https://oss-img.ys168.vip/sys/other/xttz.png";
    }

    String SUCCESS = "SUCCESS";
    //缓存30天好友列表
    long SAVE_TIME = 60 * 60 * 24 * 30;
    String BASE_FORMAT = "yyyy-MM-dd HH:mm:ss";
    String SYSTEM_OBJECT_VALUE = "0";
    String SYSTEM_ANDROID = "android";
    String SYSTEM_IOS = "ios";

    String S_TABLE_PREFIX = "s_chat_";
    String G_TABLE_PREFIX = "s_group_chat_";

    String SINGLE_PREFIX = "S_";
    String GROUP_PREFIX = "G_";

    int sChatTableNum = 10;

    int gChatTableNum = 20;

    interface FriendsConstants {
        long SAVE_TIME_APPLY = 60 * 60 * 24 * 1;
    }

    interface GroupConstants {
        long SAVE_TIME_USER_GROUP = 10L;

        /**
         * 不活跃 等级1  3天
         */
        long INACTIVE_LEVEL_ONE = 3;
        /**
         * 不活跃 等级2  7天
         */
        long INACTIVE_LEVEL_TWO = 7;
        /**
         * 不活跃 等级3  30天
         */
        long INACTIVE_LEVEL_THREE = 30;
    }

    interface MessageConstants {
        String MESSAGE_USER = "user";
        String MESSAGE_GROUP = "group";
        String MESSAGE_SYSTEM = "system";
    }


    interface SwitchConstants {
        /**
         * 是否使用花呗开关
         */
        String SWITCH_ALIPAY = "switch.alipay";

        /**
         * 注册是否需要邀请码
         */
        String SWITCH_INVITE_CODE = "user.register.isInvited";

        /**
         * 注册开关
         */
        String SWITCH_REGISTER = "user.register.config";

        /**
         * 建群开关
         */
        String SWITCH_ADD_GROUP = "user.group.add";

        /**
         * 一键红包领取开关
         */
        String SWITCH_ONE_KEY_GRAD = "user.one.key.grad";

        /**
         *
         */
        String SWITCH_TURN_GROUP = "switch.turn.group";
    }

    interface DataSourceConstants {

        /**
         * 群提示
         */
        String COMPLAIN_TIP_GROUP = "complain.tip.group";
        /**
         * 私聊提示
         */
        String COMPLAIN_TIP_SINGLE = "complain.tip.single";
        /**
         * 登录推送信息
         */
        String LOGIN_PUSH_MESSAGE = "user.login.push.message";
        /**
         * 红包个数设置
         */
        String RED_PACKAGE_GRAD_COUNT = "red.packet.grad.count";
        /**
         * 红包时间设置
         */
        String RED_PACKAGE_GRAD_TIME = "red.packet.grad.time";
        /**
         * 支付密码修改  白名单
         */
        String PAY_PASSWORD_WHITE_LIST = "user.set.password.white.list";

        /**
         * 一次性读取消息数量
         */
        String READ_MESSAGE_SIZE = "user.read.message.size";

        /**
         * 群扩容人数
         */
        String GROUP_CAPACITY_SIZE = "group.capacity.size";

        /**
         * 创建群聊初始化人数
         */
        String INIT_GROUP_SIZE = "max.group.member.size";

        /**
         * 用户可以使用的有效的群聊个数
         */
        String USER_CAN_USE_GROUP_COUNT = "user.can.use.group.count";
        String USER_UPDATE_REAL_COUNT = "user.update.real.count";
    }

}
